<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
    <title>微信推送-订单详情</title>
    <link rel="stylesheet" href="/Public/Home/css/weiXiOrderClass.css">
    <!--不识别数字为手机-->
<meta name="format-detection" content="telephone=no, email=no"/>
<!--通用js-->
<?php if(isset($signPackage) && !empty($signPackage)){ ?>
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js?v=201704270010"></script>
<?php } ?>
<script type="text/javascript" src="/Public/Home/js/require.js"></script>
<script type="text/javascript" src="/Public/Home/js/baseLoading.js?v=201705240001"></script>
<script src="/Public/Home/js/jquery.min.js" ></script>
<script src="/Public/Home/js/pincode-input.js" ></script>
<script src="/Public/Home/js/parabola.js" ></script>
<script src="/Public/Home/js/lazyload/jquery.lazyload.min.js"></script>
<script type="text/javascript">
    _global.isLogin = !!"<?php echo $wx_member_id; ?>";
	var isWxShareDiy = typeof yc_share_diy === "undefined" ? false : yc_share_diy;
	var yc_wx_shareImgPath = "";
	<?php if(isset($weixin_logo) && !empty($weixin_logo)){ ?>
		yc_wx_shareImgPath = "/Uploads/<?php echo ($weixin_logo["image"]); ?>";
	<?php } ?>
    var yc_pass_arr = {'local_id':"<?php echo I('local_id',1);?>",'top_local_id':"<?php echo I('top_local_id',1);?>"};
	if(parseInt(yc_pass_arr["local_id"]) == 21){
		_global.isStopSell = true;
	}
    <?php if(isset($signPackage) && !empty($signPackage)){ ?>
        _global.isWeiXinLoad = true;
        var isEnableLocation = typeof yc_wx_location === "undefined" ? false : yc_wx_location;
        var yc_wx_options = {
            "enableLocation" : isEnableLocation,
            "refuseCallback" : function(){},
            "mapCallback" : function(){},
            "config" : {
                debug: false,
                appId: '<?php echo $signPackage["appId"];?>',
                timestamp: '<?php echo $signPackage["timestamp"];?>',
                nonceStr: '<?php echo $signPackage["nonceStr"];?>',
                signature: '<?php echo $signPackage["signature"];?>',
                jsApiList: [
                    'checkJsApi'
                ]
            }
        };
        var isInHeader = typeof yc_wx_useInHeader === "undefined" ? true : yc_wx_useInHeader;
        if(isInHeader){
            wxAutoConfig(yc_wx_options);
        }
    <?php } ?>
</script>
</head>
<body>
<div class="warp weixin-order-class">
    <!--订单类别-->
    <div class="member-order-top">
        <!-- 查看更多物流信息 -->
        <div class="member-delivery-method">

            <?php if($order_data[shipping_id] == 1): ?><!-- 怡臣速配-->
                <div class="member-delivery-tpis" style="display: none;">
                    <p><label>配送方式 ：</label><span><?php echo ($order_data[shipping]); ?></span></p>
                </div>
            <?php elseif($order_data[shipping_id] == 2): ?>
                <!-- 第三方-->
                <div class="member-delivery-tpis" style="display: none;">
                    <p><label>配送方式 ：</label><span><?php echo ($order_data[shipping]); ?></span></p>
                    <!--订单编号-->
                    <p class="tips">配送单号 ：<font><?php echo ($order_data[delivery_id]); ?></font></p>
                </div>
            <?php elseif($order_data[shipping_id] == 3): ?>
                <!-- 自提-->
                <div class="member-delivery-tpis">
                    <p><label>配送方式 ：</label><span><?php echo ($order_data[shipping]); ?></span></p>
                    <!--门店地址-->
                    <p class="tips">门店地址 ：<font><?php echo ($order_data[zT_addr]); ?></font></p>
                </div><?php endif; ?>


        </div>
        <!-- 收货人信息 -->
        <div class="member-location-more">
            <a href="">
                <i><img src="/Public/Home/images/logistics-icon_b.png" alt=""></i>
                <h3>收货人：<span><?php echo ($order_data[nickname]); ?></span><span class="location-iphone"><?php echo ($order_data[mobile]); ?></span></h3>
                <h3><?php echo ($order_data[ship_addr]); ?></h3>
            </a>
        </div>
    </div>
    <!--订单信息module-->
    <div class="order-mes mgTop">
        <!--商铺名称-->
        <div class="member-order-header">
            <div class="shop-choice">
                <span>订单信息</span>
            </div>
        </div>
        <!--订单详情-->
        <div class="order-mes-list">
            <!--代发货-->
            <p><label>订单状态:</label><span class="order-mes-active"><?php echo ($order_data[order_msg]); ?></span></p>
            <!--交易关闭-->
            <p style="display: none"><label>订单状态:</label><span class="order-mes-active">删除订单</span></p>
            <!--待自提-->
            <p style="display: none"><label>订单状态:</label><span class="order-mes-active">待自提</span></p>
            <p><label>订单号码:</label><span><?php echo ($order_data[order_id]); ?></span></p>
            <!--<p><label>订单状态:</label><span>待发货</span></p>-->
            <p><label>下单时间:</label><span><?php echo (date('Y-m-d H:i:s',$order_data[createtime])); ?> </span></p>
            <p><label>支付方式:</label><span><?php echo ($order_data[payment]); ?></span></p>
            <p><label>订单备注:</label><span><?php echo ($order_data[memo]); ?></span></p>
        </div>
    </div>
    <!-- 订单列表 -->
    <div class="member-order-list mgTop">
        <!--已发货-->
        <div class="member-order-listber">
            <!--商铺名称-->
            <div class="member-order-header">
                <div class="shop-choice">
                    <i><img src="/Uploads/<?php echo ($order_data[local_log]); ?>"></i>
                    <span><?php echo ($order_data["local_name"]); ?></span>
                </div>
            </div>
            <!--订单详情-->
            <div class="memberData-data-contant">
                <!--商品描述-->
                <div class="single-item dataItem">
                    <?php if(is_array($data)): foreach($data as $k=>$vo): ?><div class="swipe-item">
                            <a href="" class="img"><img src="/Uploads/<?php echo ($vo[s_url]); ?>" alt=""></a>
                            <div class="goods-text">
                                <a href="" class="name"><?php echo ($vo[name]); ?></a>
                                <p class="price" id="" value="<?php echo ($vo[price]); ?>">¥<?php echo ($vo[price]); ?></p>
                            </div>
                        </div><?php endforeach; endif; ?>

                    <!-- 组合套餐 显示-->
                    <!--<div class="goods-group">
                        <span class="red">组合促销</span>
							<span class="">
								<em>套餐价<font>¥500</font></em>
								<em> 优惠<font>¥120</font></em>
							</span>
                    </div>-->
                    <!--商品数量和价格-->
                    <div class="swipe-price">
                        <div class="swipe-price-data">
                            <span><?php if($order_data[cost_freight] > 0 ): ?>(含运费<?php echo ($order_data[cost_freight]); ?>元)<?php else: ?> (不含运费)<?php endif; ?> 共计: <em class="red"> <?php echo ($order_data[total_amount]); ?></em></span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

</div>

<script>require(['memberOrderData'])</script>
</body>
</html>